<%--
  Created by IntelliJ IDEA.
  User: 17728
  Date: 2020/10/15
  Time: 11:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<html>
<head>
    <title>Title</title>
    <%@ include file="/pages/common/head.jsp" %>
    <style type="text/css">
        html, body {
            margin: 0;
            padding: 0;

        }

        .a {
            width: 80vw;
            margin: 0 auto;
            position: relative;
            top: 70px;
        }

        .b {
            width: 500px;
        }

        .c {
            position: relative;
            top: 40px;
            left: 20px;
        }

        #bottom {
            width: 100%;
            height: 180px;
            position: fixed;
            bottom: 0;
            background-color: #2A2730;
            color: #FFFFFF;
        }

        #bottom p {
            text-align: center;
        }
    </style>
</head>

<body>


<nav class="navbar navbar-default">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">&nbsp;&nbsp;&nbsp;作业棒&nbsp;&nbsp;&nbsp;</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">

                <li><a href="NoticeServlet?action=page&pageNo=1">学生界面</a></li>
                <li><a href="HwServlet?action=queryHwStu">下载作业</a></li>
                <li class="active"><a href="HwServlet?action=queryHw">提交作业<span class="sr-only">(current)</span></a>
                </li>
                <li><a href="StudentServlet?action=query">个人信息</a></li>
                <li><a href="pages/student/student_change.jsp">修改密码</a></li>
            </ul>

            <ul class="nav navbar-nav navbar-right">
                <li><a href="UserServlet?action=logout">&nbsp;&nbsp;&nbsp;退出&nbsp;&nbsp;&nbsp;</a></li>


            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>
<div class="a">
    <form action="HwStuServlet?action=saveHwStu" method="post" enctype="multipart/form-data">
        <div class="b">
            <select class="form-control" name="hw_id">
                <option>请选择你要提交的作业</option>
                <c:forEach items="${requestScope.hws}" var="hws">
                    <option value="${hws.id}">${hws.title}</option>
                </c:forEach>
            </select>
        </div>
        <div class="c">
            <div class="form-group">
                <label for="exampleInputFile">作业名称</label>
                <input type="file" id="exampleInputFile" name="url">

            </div>
            <button type="submit" class="btn btn-default">交作业</button>
        </div>
    </form>
</div>
<%@include file="/pages/common/footer.jsp" %>
</body>
</html>
